package com.tuanzi.loan.business.enums;

import lombok.Getter;

public enum ModuleContentItemType {

	INPUT_TEXT("输入框"),

	IMAGE("图片"),

	IMAGE_TEXT("图文"),

	DATE("时间"),

	RADIO_BUTTON("单选框"),

	LIST("列表");

	@Getter
	private String displayText;

	ModuleContentItemType(String displayText) {
		this.displayText = displayText;
	}

	public static ModuleContentItemType getEnum(int index) {
		for (ModuleContentItemType type : ModuleContentItemType.values()) {
			if (type.ordinal() == index) {
				return type;
			}
		}
		return null;
	}

}
